<script setup>
import { onMounted } from 'vue'
import { useAdminStore } from '@/stores/admin' 
const adminStore = useAdminStore()
const { adminInfo } = adminStore

onMounted(() => {
    console.log(adminInfo)
})
</script>

<template>
<div>
    <h1>欢迎来到管理平台！{{ adminInfo.userName}}</h1>
</div>
</template>